package be.HelloWeb.Web;

import java.io.IOException;
import java.io.PrintWriter;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.catalina.connector.Request;

/**
 * Servlet implementation class HelloServlet
 */
public class HelloServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
	SimpleDateFormat formatDate= new SimpleDateFormat("EEEE dd MMMM yyyy");
	SimpleDateFormat formatime= new SimpleDateFormat("hh:mm");
	Date now=new Date();

   
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		
	}

	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		PrintWriter out=response.getWriter();
		
		String userName=request.getParameter("username");
	
		out.println("<h1>Informations</h1>"
				
				+ "<p>Hello Mr:  "+userName+"</p>");
		
	}

}
